home *** CD-ROM | disk | FTP | other *** search
- /*************************************************************************
- * I/O library
- *************************************************************************/
-
- #ifndef _SIIO_H
- #define _SIIO_H
-
- #include <stdio.h>
-
- #ifndef _SIDEFS_H
- # include <sidefs.h>
- #endif
-
- #ifndef FS_FOPEN
- # define FS_FOPEN(_fn,_md) (FsFuncFopen)((_fn),(_md))
- #endif
- #ifndef FS_FCLOSE
- # define FS_FCLOSE(_fp) (FsFuncFclose)(_fp)
- #endif
- #ifndef FS_MKDIR
- # define FS_MKDIR(_dir) (FsFuncMkdir)(_dir)
- #endif
- #ifndef FS_RMDIR
- # define FS_RMDIR(_dir) (FsFuncRmdir)(_dir)
- #endif
- #ifndef FS_REMOVE
- # define FS_REMOVE(_fn) (FsFuncRemove)(_fn)
- #endif
- #ifndef FS_RENAME
- # define FS_RENAME(_old,_new) (FsFuncRename)((_old),(_new))
- #endif
-
- extern FILE *(*FsFuncFopen)(CONST char *, CONST char *);
- extern int (*FsFuncFclose)(FILE *);
- extern int (*FsFuncMkdir)(CONST char *);
- extern int (*FsFuncRmdir)(CONST char *);
- extern int (*FsFuncRemove)(CONST char *);
- extern int (*FsFuncRename)(CONST char *,CONST char *);
-
-
- extern FILE *_fs_fopen( CONST char *fn, CONST char *md );
- extern int _fs_fclose( FILE *fp );
- extern int _fs_mkdir(CONST char *dir);
- extern int _fs_rmdir(CONST char *dir);
- extern int _fs_remove(CONST char *fn);
- extern int _fs_rename(CONST char *old, CONST char *new);
-
- #endif
-